package com.example.demo.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author fjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("exam_category")
public class ExamCategory {
    @TableId
    private Integer id;
    private Integer categoryId;
    private Integer examId;
    private String description;
    private Integer questionNumber;
    private Integer questionScore;

    public void initExamCategory(ExamCategory examCategory){
        this.categoryId=examCategory.getCategoryId();
        this.examId=examCategory.getExamId();
        this.description=examCategory.getDescription();
        this.questionNumber=examCategory.getQuestionNumber();
        this.questionScore=examCategory.getQuestionScore();
    }
}
